package com.heu.blood.analysis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.analysis.entity.BloodTestTransfusionEntity;
import com.heu.blood.analysis.entity.TestResult;
import com.heu.blood.analysis.vo.BloodSampleInpatientlabReportVo;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.analysis.entity.BloodTestInpatientlabEntity;

import java.util.List;
import java.util.Map;

/**
 * 血液检验表
 *
 * @author lhh
 * @email lhh1612325771@163.com
 * @date 2023-11-29 20:41:10
 */
public interface BloodTestInpatientlabService extends IService<BloodTestInpatientlabEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页联表条件查询入院检查患者的血液样本和检测结果
     * @param params
     * @return
     */
    PageUtils selectSampleTestPage(Map<String, Object> params);

    /**
     * 查询入院检查患者血液样本检测报告
     * @param bloodSampleId
     * @return
     */
    Map<BloodSampleInpatientlabReportVo, List<TestResult>> queryTestResult(String bloodSampleId);

    /**
     * 根据样本单号查询检测信息
     * @param bloodSampleId
     * @return
     */
    List<BloodTestInpatientlabEntity> getBySampleId(String bloodSampleId);
}

